package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 车系 - 新增/编辑DTO
 *
 * @author Tansj
 * @since 11:10 2019-11-15
 */
@ApiModel(value = "SeriesModifyDTO", description = "车系 - 新增/编辑DTO")
public class SeriesModifyDTO extends BaseDTO {

    @ApiModelProperty(value = "车系主键ID-编辑时必传，新增传递null")
    private Long seriesId;

    @ApiModelProperty(value = "品牌ID-品牌名称下拉框传递品牌ID")
    @NotNull(message = "品牌名称不能为空")
    private Long brandId;

    @ApiModelProperty(value = "车系代码")
    @NotNull(message = "车系代码不能为空")
    private String seriesCode;

    @ApiModelProperty(value = "车系名称")
    @NotNull(message = "车系名称不能为空")
    private String seriesName;

    @ApiModelProperty(value = "数据来源-默认店面10451001")
    private Integer dataSources;

    @ApiModelProperty(value = "是否有效-默认否10041001")
    private Integer isValid;

    @ApiModelProperty(value = "版本号-编辑时必传")
    private Integer recordVersion;

    @ApiModelProperty(value = "车辆动力形式")
    private Integer powerType;

    @ApiModelProperty(value = "启用标识")
    private Integer startType;

    @ApiModelProperty(value = "启用日期")
    @JsonDeserialize(using = JsonLocalDateTimeQueryBeginDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeQueryBeginSerializer.class)
    private LocalDateTime startDate;

    @ApiModelProperty(value = "修改人")
    private String updatedBy;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = JsonLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeSerializer.class)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = JsonLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeSerializer.class)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    public Long getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Long seriesId) {
        this.seriesId = seriesId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getSeriesCode() {
        return seriesCode;
    }

    public void setSeriesCode(String seriesCode) {
        this.seriesCode = seriesCode;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(Integer recordVersion) {
        this.recordVersion = recordVersion;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getPowerType() {
        return powerType;
    }

    public void setPowerType(Integer powerType) {
        this.powerType = powerType;
    }

    public Integer getStartType() {
        return startType;
    }

    public void setStartType(Integer startType) {
        this.startType = startType;
    }

    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    @Override
    public String toString() {
        return "SeriesModifyDTO{" +
                "seriesId=" + seriesId +
                ", brandId=" + brandId +
                ", seriesCode='" + seriesCode + '\'' +
                ", seriesName='" + seriesName + '\'' +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", recordVersion=" + recordVersion +
                ", powerType=" + powerType +
                ", startType=" + startType +
                ", startDate=" + startDate +
                ", updatedBy=" + updatedBy +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", createdAt=" + createdAt +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
